/*
* This file is a part of the open-eBackup project.
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file, You can obtain one at
* http://mozilla.org/MPL/2.0/.
*
* Copyright (c) [2024] Huawei Technologies Co.,Ltd.
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
*/
#ifndef APPPLUGIN_NAS_ERRORCODE_H
#define APPPLUGIN_NAS_ERRORCODE_H

namespace HomoErrorCode {
    constexpr int64_t LOGIN_FAILED_ERROR_CODE = 1077987870; // 登陆Dorado失败
    constexpr int64_t AGENT_SWITCH_ERROR_CODE = 1577209915; // 网络原因问题流程报错，告知DME让其切换
    constexpr int64_t CERTIFACATE_IS_INVALID = 1677931026; // 因证书过期、证书被吊销等原因证书认证失败
    constexpr int64_t ERROR_AGENT_INTERNAL_ERROR = 1577209867;
    constexpr int64_t ERROR_NAS_SCAN_PROTECTED_SERVER_NOT_REACHABLE = 1577209924;
    constexpr int64_t ERROR_NAS_SCAN_SECONDARY_SERVER_NOT_REACHABLE = 1577209925;
    constexpr int64_t ERROR_NAS_SCAN_TOO_MANY_FILES_FAILED = 1577209872;
    constexpr int64_t ERROR_BACKUP_FAILED_NOACCESS_ERROR = 1577209928;
    constexpr int64_t ERROR_BACKUP_FAILED_NOSPACE_ERROR = 1577209929;
    constexpr int64_t ERROR_NAS_BACKUP_PROTECTED_SERVER_NOT_REACHABLE = 1577209930;
    constexpr int64_t ERROR_NAS_BACKUP_SECONDARY_SERVER_NOT_REACHABLE = 1577209931;
    constexpr int64_t ERROR_BACKUP_CREATE_SNAP_FAILED_ERROR = 1577209932;
    constexpr int64_t ERROR_BACKUP_DEL_SNAP_FAILED_ERROR = 1577209933;
    constexpr int64_t BACKUP_PARAMETER_CHECK_FAILED_ERROR_CODE = 1577209947; // 备份参数检查错误时的错误码
    constexpr int64_t ERROR_BACKUP_RESTORE_PARAMETER_CHECK_FAILED = 1577209959; // 恢复参数检查错误时的错误码
    constexpr int64_t REPLICATION_PAIR_LINK_TIMEOUT_ERROR_CODE = 1577209958; // 复制链路中断超过1h的错误码
    constexpr int64_t REPLICATION_PAIR_NOTEXIST_ERROR_CODE = 1077937923; // 复制pair没有查到
    constexpr int64_t REPLICATION_PAIR_INVAILD_ERROR_CODE = 1077937986; // 复制pair无效
    constexpr int64_t REPLICATION_PAIR_TOBERECOVERED_ERROR_CODE = 1077937987; // 复制pair待恢复状态
    constexpr int64_t REPLICATION_PAIR_SPLIT_ERROR_CODE = 1077937984; // 复制pair分裂状态
    constexpr int64_t SNAPSHOT_NAME_RANGE_INVAILED_ERROR_CODE = 1077936853; // 名称长度范围为1到32
    constexpr int64_t INTERNAL_ERROR_CODE = 1577209897; // 内部错误
    constexpr int64_t REMOTE_DEVICE_NOTEXIST_ERROR_CODE = 1077937961; // 远端设备不存在
    constexpr int64_t SNAPSHOT_NUM_LIMIT_ERROR_CODE = 1073754137; // 快照数量超出限制
    constexpr int64_t ERROR_NAS_PROTOCOL_VERSION_DONOT_SUPPORT = 1577210112; // 0x5E025100, 不支持NFSv4
};  // namespace HomoErrorCode

namespace HetroErrorCode {
    constexpr int64_t BACKUP_PARAMETER_CHECK_FAILED_ERROR_CODE = 1577209947; // 备份参数检查错误时的错误码
}
#endif //APPPLUGIN_NAS_ERRORCODE_H
